package com.qf.service.impl;

import com.qf.pojo.req.POrderReq;
import com.qf.pojo.resp.BaseResp;
import com.qf.service.PlaneOrderService;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

@Service

public class PlaneOrderServiceImpl implements PlaneOrderService {
    @Autowired
    PlaneOrderService planeOrderService ;

    @Override
    public BaseResp addOrder(@ApiParam(name = "order", value = "order", required = true)
                                 @RequestBody POrderReq POrderReq, HttpServletRequest httpServletRequest) {

        return planeOrderService.addOrder(POrderReq,httpServletRequest);
    }

    @Override
    public BaseResp findXcOrderById(HttpServletRequest request) {
        return planeOrderService.findXcOrderById(request);
    }

    @Override
    public BaseResp cancelOrder(String orderId) {
        return planeOrderService.cancelOrder(orderId);
    }
}
